var cc__decorate = __decorate;
Object.defineProperty(exports, "__esModule", {
  value: true
});
var $2DataManager = require("DataManager");
var $2AudioManager = require("AudioManager");
var $2KDefine = require("KDefine");
var cc__decorator = cc._decorator;
var ccp_ccclass = cc__decorator.ccclass;
var ccp_property = cc__decorator.property;
var def_Player = /* */function (_cc$Component58) {
  babel_inherits(c, _cc$Component58);
  var _super74 = babel_createSuper(c);
  function c() {
    babel_classCallCheck(this, c);
    return _super74.apply(this, arguments);
  }
  babel_createClass(c, [{
    key: "onLoad",
    value: function onLoad() {}
  }, {
    key: "onCollisionEnter",
    value: function onCollisionEnter(e, t) {
      var _this165 = this;
      $2AudioManager.default.instance.playEffect($2KDefine.AudioName.daifu);
      $2DataManager.default.instance.cur_hp--;
      $2DataManager.default.instance.cur_hp <= 0 && ($2DataManager.default.instance.cur_hp = 0);
      var a = 0;
      this.schedule(function () {
        _this165.node.opacity = a % 2 == 0 ? 0 : 255;
        a++;
      }, .1, 3, 0);
    }
  }]);
  return c;
}(cc.Component);
def_Player = cc__decorate([ccp_ccclass], def_Player);
exports.default = def_Player;